package com.zhang.dao;

import com.zhang.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    List<User> getUserList();

    User getUserById(int id);

    int addUser(User user);

    int updateUser(User user);

    int deleteUSer(int id);

    User getUserByNP(@Param("username") String username, @Param("pwd") String pwd);

    User getUserByNP2(Map<String, Object> map);

    List<User> getUserListLike(String value);
}
